<div   class="popup_window_css" id="sample9" >
<?php 

//unset($_SESSION['listreference1']);
//unset($_SESSION['namereference1']);
//unset($_SESSION['slreference1']);

$listreference=$_SESSION['listreference3'];
$namereference=$_SESSION['namereference3'];

//$i=$_SESSION['slreference1'];
?>
	<table class="popup_window_css" style="width: 100%;" >
		<tr    class="popup_window_css" >
			<td    class="popup_window_css">
				<div   class="popup_window_css_head">
					<img src="images/close.gif" alt="" width="12" height="12" />Select Sendmail
				</div>
				<div   class="popup_window_css_body">
					
			
					
					<table width="100%" style="padding-top: 10px;min-width: 600px">
						<tr >
							<td width="20%" style="vertical-align:top">
	                        	<ul class="list_ph" style="list-style: none;margin: 0;padding: 0" >
	                        		<?php while ($row= mysql_fetch_array($queryDepartment)){?>
	                            	<li><a  onclick="showUser1(<?=$row[IDDepartment]?>)"><?=$row[DepartmentName]?></a></li>
	                                <?php }?>
	                            </ul>
	                        </td>	
								
							<td width="40%" valign="top">
							<div id="txtHint">
								<table border='1' class='table_th' style='height:22px;' cellspacing='0' width="100%">
									<tr style='background-color:#EEE;'>
									<td colspan="2"><?php echo $l_employee_list;?></td>
									
									</tr>
								</table>
							</div>
							</td>
							<td width="40%"  valign="top">
							<div id="txtHint1">
								<?php 
									
								?>
								<table border='1' class='table_th' style='height:22px;' cellspacing='0' width="100%">
									<tr style='background-color:#EEE;'>
										<td colspan="2">List Send Mail</td>
										
									</tr>
									<?php 
									$i=0;
									while ($row = mysql_fetch_array($querySendMail))
									{
										
										$listreference[$i]=$row[IDEmployee];
										$namereference[$i]=$row[FullName];
										
									?>
										
									
									<tr >
									<td ><?=$row[FullName]?></td>
									<td width="20"><a onclick='rmReference1(<?=$listreference[$i]?>)'><img src="images/del.png" /></a></td>
									</tr>
									<?php 
										$i=$i+1;
									}
										$_SESSION['listreference3']=$listreference;
										$_SESSION['namereference3']=$namereference;
										$_SESSION['slreference3']=$i;
									?>
								</table>
								
							</div>
							</td>
						</tr>
					</table>
				</div>
				<div   class="popup_window_css_foot">
					
						<input style="margin:12px 5px 0 0; font-size: 12px;" type="button" onclick="sendmail()" value="<?php echo $l_accept;?>" class="btn_choose" name="agree" />
						

				</div>
			</td>
		</tr>
	</table>

</div>